import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import set_node_cls from "@dfeidao/atom-web/ui/set-node-cls";
import nodejs from '@dfeidao/atom-web/msg/nodejs';
import render from '@dfeidao/atom-web/render/render';
import p001 from './p001';

export default async function a001(fd: IFeidaoAiBrowserComponent) {
	// 显示添加弹出框
	const d = fd.data.node.querySelector<HTMLDListElement>('[data-id="add2"]');
	set_node_cls(d, 'display-n', false);


	// 查询风险等级
	const res = await nodejs<{ res: Array<{}>; c: number; }>('risk_point/zj-000006/s001', {
		optional_value: ''

	});
	console.info("nishei", res);
	render(fd, res, p001, 'p001', 'inner');
}
